rm -rf ./compile_results
mkdir compile_results

ARCH=${CONDA_PREFIX}/arch/dpuv2/ZCU104/ZCU104.json

# Compile
echo "#####################################"
echo "COMPILE WITH DNNC begin"
echo "#####################################"
vai_c_tensorflow \
       --frozen_pb=./quantize_results/deploy_model_4w4a.pb \
       --arch ${ARCH} \
       --output_dir=compile_results \
       --net_name=dpuUltraNetModel

mv ./compile_results/dpu_dpuUltraNetModel.elf ./compile_results/dpu_dpuUltraNetModel_4w4a.elf 
rm ./compile_results/dpuUltraNetModel_kernel_graph.gv

vai_c_tensorflow \
       --frozen_pb=./quantize_results/deploy_model_float.pb \
       --arch ${ARCH} \
       --output_dir=compile_results \
       --net_name=dpuUltraNetModel

mv ./compile_results/dpu_dpuUltraNetModel.elf ./compile_results/dpu_dpuUltraNetModel_float.elf 
rm ./compile_results/dpuUltraNetModel_kernel_graph.gv

echo "#####################################"
echo "COMPILATION COMPLETED"
echo "#####################################"
